import Vue from 'vue'
import VueRouter from 'vue-router'

import routes from './router'
Vue.use(VueRouter)



const router = new VueRouter({
  mode: 'history', // hash 利用的就是路由hashchange; history需要后台配合
  base: process.env.BASE_URL,
  routes

})

export default router
